package com.example.dmallOrder.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

@Configuration
@EnableScheduling
@Component
@Slf4j
public class OutstationGroupbuyTask {
//    @Resource
//    private OutstationGroupbuyApplyService outstationGroupbuyApplyService;
//
//    //@Scheduled(cron = "0/10 * * * * ?")
//    //@Scheduled(cron = "0 0/5 7-18 * * ?")   //五分钟一次更新~
//    //@Scheduled(cron = "0 0/59 * * * ?")   //59分钟一次更新~
//    public void updateOutstationGroupbuyTask() {
//        log.info("【START】【门店团购审批-更新数据库】");
//        boolean updated = outstationGroupbuyApplyService.updateOutstationGroupbuyTask();
//        log.info("【END】【门店团购审批-更新数据库】updated = {}", updated);
//    }

}
